package business.dados;

//import org.hibernate.SessionFactory;
//import org.hibernate.cfg.Configuration;
//import org.hibernate.classic.Session;

public class MySQLConnection  
{
	public void factorySession() 
	{		
//		SessionFactory factory;
//		Configuration  config = new Configuration().
//	    setProperty("hibernate.dialect", "org.hibernate.dialect.MySQLDialect").
//	    setProperty("hibernate.connection.driver_class", "com.mysql.jdbc.Driver").
//	    setProperty("hibernate.connection.url", "jdbc:mysql://localhost:3306/raiosol").
//	    setProperty("hibernate.connection.username", "root").
//	    setProperty("hibernate.connection.password", "mysql73dda").
//	    setProperty("hibernate.show_sql", "true").
//		setProperty("hibernate.format_sql", "true");
		
//		config.addClass(classe);
		
//		factory = config.buildSessionFactory();
//		
//		return factory.openSession();
	}

}
